 package pojo;

/**
 * 文件实体类
 */
public class FileItem {
    /**
     *定义：id 文件名 文件路径 长度
     */
    private Long id;
    private String filename;
    private String path;
    private Long length;
    private Long user_id;
    private Integer open;
    private String crate_time;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFileName() {
        return filename;
    }

    public void setFileName(String fileName) {
        this.filename = fileName;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Long getLength() {
        return length;
    }

    public void setLength(Long length) {
        this.length = length;
    }

    public FileItem() {
    }

    public Long getUser_id() {
        return user_id;
    }

    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }

    public Integer getOpen() {
        return open;
    }

    public void setOpen(Integer open) {
        this.open = open;
    }

    public String getCrate_time() {
        return crate_time;
    }

    public void setCrate_time(String crate_time) {
        this.crate_time = crate_time;
    }

    public FileItem(Long id, String filename, String path, Long length, Long user_id, Integer open, String crate_time) {
        this.id = id;
        this.filename = filename;
        this.path = path;
        this.length = length;
        this.user_id = user_id;
        this.open = open;
        this.crate_time = crate_time;
    }

    public FileItem(Long id, String fileName, String filePath, Long length) {
        this.id = id;
        this.filename = fileName;
        this.path = filePath;
        this.length = length;
    }

    @Override
    public String toString() {
        return "FileItem{" +
                "id=" + id +
                ", fileName='" + filename + '\'' +
                ", filePath='" + path + '\'' +
                ", length=" + length +
                '}';
    }
}
